package com.cloudservice.ccs.mapper;

import com.cloudservice.ccs.entity.CustomerService;
import com.cloudservice.ccs.model.HomeTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerServiceMapper {

    int save(CustomerService customerService);

    int update(Integer id, CustomerService customerService);

    int partialUpdate(Integer id, Map<String, Object> fields);

    int delete(Integer id);

    CustomerService getOne(Integer id);

    List<CustomerService> getAll();

    List<CustomerService> getWithConditions(@Param("conditions") Map<String, Object> conditions);

    List<HomeTable> getHomeTable();
}
